package com.wjl.cli.command;

import cn.hutool.core.io.FileUtil;
import lombok.Data;
import picocli.CommandLine;

import java.io.File;
import java.util.List;

@CommandLine.Command(name = "list", mixinStandardHelpOptions = true)
@Data
public class ListCommand implements Runnable {
    @Override
    public void run() {
        String userDir=System.getProperty("user.dir");
        String targetPath=userDir+"/acm-template";
        String absolutePath = new File(targetPath).getAbsolutePath();
        List<File> files = FileUtil.loopFiles(absolutePath);
        files.forEach(System.out::println);
    }
}
